@REM Create the output foler
mkdir  out

@REM Flex run
..\tools\win_flex.exe  -o 1.lex.c 1.flex 
move  1.lex.c  out\1.lex.c


@REM Bison run
..\tools\win_bison.exe  1.bison   --output-file=out\1.tab.c

copy  interpreter.c  out\interpreter.c
copy  ast.h  out\ast.h
copy  ast.c  out\ast.c

cd out
gcc -o myscript 1.lex.c 1.tab.c ast.c interpreter.c -lfl
pause